package com.fulihui.usercore.core.generator;

import org.near.toolkit.common.DateUtils;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.UUID;

/**
 * @author Willard.Hu on 2016/11/9 0009.
 */
@Component("customerIdGenerator")
public class CustomerIdGenerator implements IGenerator {
    @Override
    public String generate() {
        return "C" + DateUtils.formatLongFormat(new Date()) + UUID.randomUUID();
    }
}
